package xfuzzy.alg_genetico.indeterminado.stop;

import xfuzzy.xfghl.algorithm.ResultGA;

public class TimeLimit extends StopCondition {

	private long time;
	
	public TimeLimit(long time)  {
		
		this.time = time;
	}
	
	public long getTime() {
		return time;
	}
	
	public void setTime(long time) {
		this.time = time;
	}
	
	@Override
	public boolean parar(ResultGA conf) {
		
		if (this.time > conf.getTime())
			return true;
		return false;
	}

}
